package com.zb.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zb.entity.ZjWorkHoubanYunNetwork;
import com.zb.mapper.ZjWorkHoubanYunNetworkMapper;
import com.zb.service.ZjWorkHoubanYunNetworkService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author WEN
 * @Date 2024/9/28 0028
 **/
@Service
public class ZjWorkHoubanYunNetworkServiceImpl extends ServiceImpl<ZjWorkHoubanYunNetworkMapper, ZjWorkHoubanYunNetwork> implements ZjWorkHoubanYunNetworkService {
    @Resource
    private ZjWorkHoubanYunNetworkMapper workHoubanYunNetworkMapper;

    // 根据伙伴云负责服务商ID查询是否允许报单
    @Override
    public boolean existByHoubanYunNetworkItemId(Long custAccId, String houbanYunNetworkItemId) {
        if (null == houbanYunNetworkItemId) {
            return false;
        }
        Integer exist = workHoubanYunNetworkMapper.existByHoubanYunNetworkItemId(custAccId, houbanYunNetworkItemId);
        return null != exist;
    }
}
